home *** CD-ROM | disk | FTP | other *** search
/ Programming Languages Suite / ProgramD2.iso / Borland / Borland C++ V5.02 / CLASSSRC.PAK / DATEP.CPP < prev    next >
C/C++ Source or Header  |  1997-05-06  |  840b  |  32 lines

  1. //----------------------------------------------------------------------------
  2. // Borland Class Library
  3. // Copyright (c) 1993, 1997 by Borland International, All Rights Reserved
  4. //
  5. //$Revision:   5.7  $
  6. //
  7. // TDate class persistant streaming implementation
  8. //----------------------------------------------------------------------------
  9. #include <classlib/pch.h>
  10. #include <classlib/date.h>
  11. #include <classlib/objstrm.h>
  12. #include <strstrea.h>
  13.  
  14. #if defined(BI_NAMESPACE)
  15. namespace ClassLib {
  16. #endif
  17.  
  18. opstream _BIDSFAR & _BIDSFUNC operator << ( opstream _BIDSFAR & os, const TDate _BIDSFAR & d )
  19. {
  20.     return os << d.Julnum;
  21. }
  22.  
  23. ipstream _BIDSFAR & _BIDSFUNC operator >> ( ipstream _BIDSFAR & is, TDate _BIDSFAR & d )
  24. {
  25.     return is >> d.Julnum;
  26. }
  27.  
  28. #if defined(BI_NAMESPACE)
  29. }       // namespace ClassLib
  30. #endif
  31.  
  32.